define("@widget/LAYOUT/c/bs-ComponentPropTypes-39236c19.js",["exports"],(function(e){"use strict";function o(e,o,t){return e(t={path:o,exports:{},require:function(e,o){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==o&&t.path)}},t.exports),t.exports}var t=o((function(e,o){Object.defineProperty(o,"__esModule",{value:!0}),o.config=void 0,o.config={cartUrl:"https://cart-checkout.dev-secureserver.net"}})),r=o((function(e,o){Object.defineProperty(o,"__esModule",{value:!0}),o.config=void 0,o.config={cartUrl:"https://cart-checkout.test-secureserver.net"}})),p=o((function(e,o){Object.defineProperty(o,"__esModule",{value:!0}),o.config=void 0,o.config={cartUrl:"https://cart-checkout.secureserver.net"}})),s=o((function(e,o){Object.defineProperty(o,"__esModule",{value:!0}),o.getConfig=void 0;o.getConfig=e=>{switch(e){case"test":return r.config;case"prod":case"production":return p.config;default:return t.config}}})),a=o((function(e,o){Object.defineProperty(o,"__esModule",{value:!0}),o.cartSetup=void 0;o.cartSetup=e=>(Boolean(window.__Commerce)||t(e),window.__Commerce.setupPromise);const t=e=>{const{cartUrl:o}=s.getConfig(e.env||"local"),t=Object.assign(Object.assign({},e),{cartUrl:o});window.__Commerce={setupPromise:r(),options:t};const p=document.createElement("script");p.src=`${t.cartUrl}/dist/embed.js`,p.async=!0,p.id="commerce-cart-script",document.body.appendChild(p)},r=()=>{let e,o;const t=new Promise(((t,r)=>{e=t,o=r}));return t.resolve=e,t.reject=o,t}}));const n={category:(global.PropTypes||guac["prop-types"]).string,sidebarWidth:(global.PropTypes||guac["prop-types"]).number,isShopPage:(global.PropTypes||guac["prop-types"]).bool,appointmentsPageId:(global.PropTypes||guac["prop-types"]).string,shopPageId:(global.PropTypes||guac["prop-types"]).string,shopRoute:(global.PropTypes||guac["prop-types"]).string,accountId:(global.PropTypes||guac["prop-types"]).string,websiteId:(global.PropTypes||guac["prop-types"]).string,olsStatus:(global.PropTypes||guac["prop-types"]).string,olsAccountStatus:(global.PropTypes||guac["prop-types"]).string,env:(global.PropTypes||guac["prop-types"]).string,renderMode:(global.PropTypes||guac["prop-types"]).string,rootDomain:(global.PropTypes||guac["prop-types"]).string,domainName:(global.PropTypes||guac["prop-types"]).string,pageRoute:(global.PropTypes||guac["prop-types"]).string,cartStyles:(global.PropTypes||guac["prop-types"]).object,isReseller:(global.PropTypes||guac["prop-types"]).bool,staticContent:(global.PropTypes||guac["prop-types"]).object},c={category:(global.PropTypes||guac["prop-types"]).string,sidebarWidth:(global.PropTypes||guac["prop-types"]).number,appointmentsPageId:(global.PropTypes||guac["prop-types"]).string,websiteId:(global.PropTypes||guac["prop-types"]).string,env:(global.PropTypes||guac["prop-types"]).string,renderMode:(global.PropTypes||guac["prop-types"]).string,rootDomain:(global.PropTypes||guac["prop-types"]).string,domainName:(global.PropTypes||guac["prop-types"]).string,pageRoute:(global.PropTypes||guac["prop-types"]).string,cartStyles:(global.PropTypes||guac["prop-types"]).object,isReseller:(global.PropTypes||guac["prop-types"]).bool,staticContent:(global.PropTypes||guac["prop-types"]).object};e.C=n,e.a=e=>{const{ACCENT:o}=(global.Core||guac["@wsb/guac-widget-core"]).constants.categoryTypes;return{wrapper:{position:"relative",":after":{content:'""',position:"absolute",display:"block",top:"0",left:"0",bottom:"0",right:"0",backgroundColor:e===o?"neutralOverlay":"accentOverlay",borderRadius:"0.75em",opacity:e===o?"0.2":"0.1"}},count:{position:"relative",minWidth:"1.5em",padding:"0.25em",lineHeight:"1",textAlign:"center",zIndex:"1"}}},e.b=c,e.g=async e=>{let{shouldUseCache:o=!1,websiteId:t,rootDomain:r}=e,p=!1;try{if(o&&(p="true"===sessionStorage.getItem("olaGopayCartOn"),+new Date-+sessionStorage.getItem("olaGopayCartOnTs")<3e5))return p;const e=await window.fetch((e=>{let{websiteId:o,rootDomain:t}=e;return`https://api.ola.${t}/accounts/${o}/config?fields[]=cart`})({websiteId:t,rootDomain:r})),s=(await e.json()).config;return p=s&&s.is_gopay_cart_on,o&&(sessionStorage.setItem("olaGopayCartOn",p),sessionStorage.setItem("olaGopayCartOnTs",+new Date)),p}catch(e){return p}},e.h=e=>{let{cart:o,renderMode:t}=e;if(t===(global.Core||guac["@wsb/guac-widget-core"]).constants.renderModes.PUBLISH)try{"true"===new URLSearchParams(window.location.search).get("showCart")&&o.toggle()}catch(e){}},e.l=a})),"undefined"!=typeof window&&(window.global=window); //# sourceMappingURL=bs-ComponentPropTypes-39236c19.js.map